package com.wrupple.vegetate.server.domain;

import java.io.Serializable;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Relation implements Serializable, IsSerializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8323266579027088594L;
	private String catalog;
	private List<String> options;
	private boolean key = false;

	/**
	 * @return true if this field is a foreign key values AS IS, pointing to
	 *         another catalog's entry
	 */
	public boolean isKey() {
		return key;
	}

	/**
	 * @param key
	 *            true if this field contains key value(s) as is.
	 */
	public void setKey(boolean key) {
		this.key = key;
	}

	public String getCatalog() {
		return catalog;
	}

	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}

	/**
	 * @return the hard-coded list of options this field can have
	 */
	public List<String> getOptions() {
		return options;
	}

	/**
	 * @param options
	 *            the hard-coded list of options this field can have
	 */
	public void setOptions(List<String> options) {
		this.options = options;
	}

}
